#include "easylogging++.h"

INITIALIZE_EASYLOGGINGPP

int main(int argc, char** argv)
{
	el::Configurations conf("my_log.conf");
	el::Loggers::reconfigureAllLoggers(conf);

	LOG(TRACE)   << "***** trace log  *****";
	LOG(DEBUG)   << "***** debug log  *****";
	LOG(ERROR)   << "***** error log  *****";
	LOG(WARNING) << "***** warning log  *****";
	LOG(INFO)    << "***** info log  *****";

	system("pause");
	return 0;
}

/* ./2_easylogging_读取配置.out; ls ./log
debug_log_20240417.log  error_log_20240417.log  info_log_20240417.log
log_20240417.log  trace_log_20240417.log  warning_log_20240417.log

 */